AppleScript™ is a scripting language which, through Apple events, allow you to automate and integrate applications.
If you haven't used AppleScript™ before, DragStrip is a great place to start. DragStrip integrates well with the Finder since it uses Finder objects, such as folders, documents and applications. There are some excellent books available which cover the AppleScript™ language and will help you to write scripts to automate DragStrip.
We have included some sample scripts and documentation to help you when writing scripts for DragStrip™. You can take a look at the scripts for all these applications.
To view the sample scripts
To view the script of these applications, you need an AppleScript™ editor such as Script Editor.
1. Open Script Editor
2. Select Open from the File menu
3. Select the script you want to view and click Open
Sample Scripts
Iconize All Strips
This application iconizes all currently opened windows. It performs the same action as if the user selected each open strip one at a time and selected Iconize in the Options menu. After the strips have been iconized, you can reopen them by clicking on the iconized strip.
Get DragStrip Info
This application displays information about DragStrip such as the version, amount of RAM allocated, amount of RAM available and the number of currently opened strips.
Basic DragStrip Setup
This application creates a new strip and installs the System folder, Apple Menu Items folder, Control Panels folder, Extensions folder and all currently mounted disks.
Other Cool Scripts
Cron
This application launches all applications and documents, installed on a strip called "Cron Strip", once every hour. The name of the strip and the time between launches can be easily changed by modifying the property of the script.
Distribute Files
Double-click this application to copy the selected files in the Finder to the folders or disks installed on the strip "In Boxes". You can also drop files on the application the copy those files. The name of the strip can be easily changed by modifying the property of the script.
DragStrip Inventory
Double-click this application to get a complete inventory listing of the items installed on all currently opened strips. You can also drop DragStrip documents on the application to get a listing of all items installed on the dropped DragStrip documents. By modifying the properties in the beginning of the script, you can select what information you want to include in the inventory listing.
Strip Setting Scripts
DragStrip Default Styles
This application creates a style script which you can use to set the DragStrip's default strip settings.
Strip Styles
This application creates a style script which you can use to set the style of any strip.
DragStrip Styles
This application creates a style script which you can use to set DragStrip's default style and the style of every opened strip. All style settings will be identical.
To create style scripts
1. Double-click on the styling application.
2. Select the strip that you want to get the settings from.
The styling application will create a style script based on the settings of the script you specified.
3. Enter the name of the style script.
4. Open the completed style script with Script Editor.
5. Select Save As... from the File menu.
6. Select to save as an application and never show startup screen.
7. Enter the name to save as and click Save.
The style script will be saved as an application. Use this application to style your other strips or keep it in a library of style scripts.
Where to Get More Information on AppleScript™
Danny Goodman's AppleScript™ Handbook, 2nd Edition, Random House Electronic Publishing
AppleScript Language Guide, Addison-Wesley Publishing Company
AppleScript forum on America Online (keyword APPLESCRIPT)